package edu.sctu.alex.day201505110;

import edu.sctu.alex.May.day20150510.TextSix;

/**
 * Created by user03 on 2015/5/10.
 */
//    public static void main(StringOne[] args) {

//        TexMain textOne = new TexMain();
//
//        TextOneX textOneX = new TextOneX();
//
//        TextThree textThree = new TextThree();
//
//        textOneX.CountNum(textThree);
//
//        System.out.println(textThree.getNum);

//        TextFive textFive = new TextFive(textOne);
//        textFive.count();

    //
    public class DayClient {
        public static void main(String[] args) {

            TextSix textsix1 = new TextSix("xm","male",18);


            TextSix textsix2 = new TextSix("xh","male",19);


            TextSix textsix3 = new TextSix("xy","female",19);


            TextSix[] textsix = {textsix1, textsix2, textsix3};

            printArray(textsix);
        }



        public static void printArray(TextSix[] textsix) {

            for (int i = 0; i <textsix.length; i++) {
                System.out.println("The name:"+textsix[i].name);
                System.out.println("The sex:"+textsix[i].sex);
                System.out.println("The age:"+textsix[i].age);
            }

        }
    }